package com.ebt.m.cloud.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Transient;

import java.util.List;

/**
 *
 */
@Entity(nameInDb = "MyDownloadInfLocal")
public class MyDownloadInfLocal {
    @Property(nameInDb = "id")
    @Id
    private long id;

    private long createAt;

    private String uri;
    private String path;

    private long size;

    private long progress;

    private int status;
    private int supportRanges;
    @Transient
    private List<MyDownloadThreadInfoLocal> downloadThreadInfos;
    @Generated(hash = 1371114118)
    public MyDownloadInfLocal(long id, long createAt, String uri, String path,
            long size, long progress, int status, int supportRanges) {
        this.id = id;
        this.createAt = createAt;
        this.uri = uri;
        this.path = path;
        this.size = size;
        this.progress = progress;
        this.status = status;
        this.supportRanges = supportRanges;
    }

    @Generated(hash = 158950890)
    public MyDownloadInfLocal() {
    }
    public List<MyDownloadThreadInfoLocal> getDownloadThreadInfos() {
        return downloadThreadInfos;
    }

    public void setDownloadThreadInfos(
            List<MyDownloadThreadInfoLocal> downloadThreadInfos) {
        this.downloadThreadInfos = downloadThreadInfos;
    }

    public long getId() {
        return this.id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getCreateAt() {
        return this.createAt;
    }

    public void setCreateAt(long createAt) {
        this.createAt = createAt;
    }

    public String getUri() {
        return this.uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public String getPath() {
        return this.path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public long getSize() {
        return this.size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public long getProgress() {
        return this.progress;
    }

    public void setProgress(long progress) {
        this.progress = progress;
    }

    public int getStatus() {
        return this.status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getSupportRanges() {
        return this.supportRanges;
    }

    public void setSupportRanges(int supportRanges) {
        this.supportRanges = supportRanges;
    }

}
